<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html style="overflow:hidden;">
	<head>
		<script type="text/javascript" src="${jquery}/jquery.js"></script>
		<script type="text/javascript" src="${jquery}/jquery.validate.js"></script>
		<script type="text/javascript" src="${jquery}/messages_cn.js"></script>
		<link href="${app}/hnjz.css" rel="stylesheet" type="text/css">
	</head>

	<body class="loginbgimg">
	<form id="myform" name="myform" method="post"
			action="j_spring_security_check">
			<div id="neirong" style="width: 995px; height: 600px; text-align:center; margin: auto; padding-top: 200px;"
				class="logintbimg">
				<div style="width: 300px; margin-left: 500px;">
                <table width="300" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="100" height="30" align="right" nowrap style="font-size: 14px; color: #ffffff;font-weight:bold;">帐号：</td>
                    <td align="left" nowrap><input class="i-text" type="text" value="" id="j_username"name="j_username" /></td>
                  </tr>
                  <tr>
                    <td width="100" height="30" align="right" nowrap style="font-size: 14px; color: #ffffff;font-weight:bold;">密码：</td>
                    <td align="left" nowrap><input class="i-text" type="password" id="j_password" name="j_password" /></td>
                  </tr>
                  <tr>
                    <td align="right" height="50" nowrap>&nbsp;</td>
                    <td align="left"><input type="submit" value="登录" class="btn-login">
					${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}</td>
                  </tr>
                </table>
			  </div>
              <div style="width:500px;height:30px;margin:auto;padding-top:182px;font-size:12px;color:#999999;"><spring:message code="userRight"/></div>
			</div>
		</form>
	</body>
</html>
<script type="text/javascript">
      $(document).ready(function(){
      	  $("#myform").validate(
	      {
	      	  messages:{
				j_username:'请输入用户名',
				j_password:'请输入密码'
			  },
	          errorClass: "error",
	          submitHandler: function(form)
	          {
	  			 form.submit();
	          },
	          rules: 
	          {
				 j_username: { required: true },
				 j_password: { required: true }
	          }
	      });
      });
</script>